<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <x-header></x-header>
      </el-header>
      <el-main class="main">
        <router-view></router-view>
      </el-main>
      <el-footer>
        <x-footer></x-footer>
      </el-footer>
    </el-container>
  </div>
</template>

<script setup>
import { heartbeat } from "../api/userAPI";

// setInterval(() => {
//   heartbeat();
// }, 10 * 1000);
</script>

<style scoped>
.main {
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
